package com.jrzh.db.migration.sys;

import com.eroi.migrate.Define.DataTypes;
import com.jrzh.framework.migration.BaseMigration;
import com.jrzh.framework.migration.MigrationHelper;
/**
 * 增加是否为自定义表单关联菜单字段_is_custom
 * @author LinHuafeng
 *
 */
public class Migration_15 extends BaseMigration{
	
	private static final String TABLE_NAME = "sys_resources";
	
	@Override
	public void down() {
		log.info("##########回滚Sys模块 Migration_15##########");
		MigrationHelper.dropColumn("_is_custom", TABLE_NAME);
	}

	@Override
	public void up() {
		log.info("##########执行Sys模块 Migration_15##########Begin");
		addColumn(TABLE_NAME, "_is_custom", "是否为自定义菜单", DataTypes.TINYINT, 4);
		log.info("##########执行Sys模块 Migration_15##########End");
	}

}
